<div class="main2 right">
    <div class="main2-top clearfix">
      <div class="main2-tab1 left">
        <a href="{AnUrl('notification')}?type=1" {if $type == 1}class="curr"{/if}>系统消息</a>
        <a href="{AnUrl('notification')}?type=2" {if $type == 2}class="curr"{/if}>应用消息</a>
      </div>
      <div class="header-search right" style="display:none;">
        <input type="text" value="搜索关键词" class="left">
        <button type="submit" class="left"><span></span></button>
      </div>
    </div>
    <div class="msg-list">
    {if $list}
      <ul>
      {if $type == 1}
        {foreach $list as $k=>$v}
            <li class="clearfix" data-id="{$v.id}">
              <div class="info left">
                <div class="txt">{$v.content}</div>
              </div>
              <div class="date1 right">
                <span>{$v.add_time}</span><em class="js_delBtn"></em>
                <div class="date1-options" style="display:none">
                  <a href="javascript:void(0);" class="js_notificationDel">删除</a>
                </div>
              </div>
            </li>
        {/foreach}
      {else}
        {foreach $list as $k=>$v}
            <li class="clearfix" data-id="{$v.id}">
              <div class="info left">
                <div class="txt"><a href="javascript:void(0);">{user_helper::display_name($v.user_id, 'real_name')}</a>- {$v.content}</div>

                  {if $v.is_confirm == 0}
                  <div class="options-btns">
                    <a href="javascript:void(0);" class="btn-sure js_confirmYes">同意</a>
                    <a href="javascript:void(0);" class="btn-concel js_confirmNo">拒绝</a>
                  </div>
                  {else if $v.is_confirm == 1}
                  <div class="msg-status"><em class="icon-agree"></em>已同意</div>
                  {else}
                  <div class="msg-status"><em class="icon-refused"></em>已拒绝</div>
                  {/if}

              </div>
              <div class="date1 right">
                <span>{time_format($v.add_time, 'Y-m-d H:i')}</span><em class="js_delBtn"></em>
                <div class="date1-options" style="display:none">
                  <a href="javascript:void(0);" class="js_notificationDel">删除</a>
                </div>
              </div>
            </li>
        {/foreach}
      {/if}
      </ul>
    {else}
    <div class="none-tips">
          <em class="icon-tips"></em>
                    还没有消息~
    </div>
    {/if}
    </div>
    {include_core file="lib/page.html"}
</div>
